<html>

	<head>
		<title><? echo html::specialchars($title) ?></title>
	</head>
	<body>
		<h1><? echo html::specialchars($title) ?></h1>
		<br /><br />
		<h2><? if (isset($sub_title)) echo html::specialchars($sub_title) ?></h2>
		<br /><br />
		
		<ul>
			<? 
				foreach ($main_menu as $position){
					if (isset($position['active']) and $position['active'] == 1){
						echo '<li>'.$position['name'].'</li>'.PHP_EOL;
					}
					else {
						echo '<li>'.html::anchor($position['link'], $position['name']).'</li>'.PHP_EOL;
					}
				}
			?>
			<? 
				if (isset($login)){
					echo '<li>'.html::anchor($login_link, $login).'</li>'.PHP_EOL; 
				}
				if (isset($register))//@todo: tu menu
			?>

		</ul>
		
		<ul>
			<? 
				if (isset($sub_title)) {
					foreach ($sub_menu as $position){
						if (isset($position['active']) and $position['active'] == 1){
							echo '<li>'.$position['name'].'</li>'.PHP_EOL;
						}
						else {
							echo '<li>'.html::anchor('/page/'.$position['link'], $position['name']).'</li>'.PHP_EOL;
						}
					}
				}
			?>
		</ul>
		<? if (isset($form_Login)) echo $form_Login; ?>
		<? if (isset($form_Register)) echo $form_Register; ?>
		<? //if (isset($info)) echo $info; ?>
	</body>
</html>